package com.credithc.customers.dataservice.until;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.atomic.AtomicReference;

public class OldDateUntil {

    public static boolean exit(boolean f, AtomicReference<Integer> vernier, ExecutorService e) {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e1) {
            e1.printStackTrace();
        }
        if (vernier.get() < 0) {
            f = false;
            try {
                Thread.sleep(600000);
            } catch (InterruptedException e1) { }
            e.shutdown();

        }
        return f;
    }
}
